<div class="maups view">
<h2><?php  __('Maup');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Maup'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($maup['Maup'][''], array('controller' => 'maups', 'action' => 'view', $maup['Maup']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ngaytao'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $maup['Maup']['ngaytao']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Maup', true), array('action' => 'edit', $maup['Maup']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Maup', true), array('action' => 'delete', $maup['Maup']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $maup['Maup']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Maups', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Maup', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Maups', true), array('controller' => 'maups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Maup', true), array('controller' => 'maups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Cpmaups', true), array('controller' => 'cpmaups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cpmaup', true), array('controller' => 'cpmaups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ps', true), array('controller' => 'ps', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New P', true), array('controller' => 'ps', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Cpmaups');?></h3>
	<?php if (!empty($maup['Cpmaup'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Chiphi Id'); ?></th>
		<th><?php __('Maup Id'); ?></th>
		<th><?php __('Thutu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($maup['Cpmaup'] as $cpmaup):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $cpmaup['id'];?></td>
			<td><?php echo $cpmaup['chiphi_id'];?></td>
			<td><?php echo $cpmaup['maup_id'];?></td>
			<td><?php echo $cpmaup['thutu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'cpmaups', 'action' => 'view', $cpmaup['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'cpmaups', 'action' => 'edit', $cpmaup['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'cpmaups', 'action' => 'delete', $cpmaup['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $cpmaup['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Cpmaup', true), array('controller' => 'cpmaups', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Maups');?></h3>
	<?php if (!empty($maup['Maup'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Maup Id'); ?></th>
		<th><?php __('Ngaytao'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($maup['Maup'] as $maup):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $maup['maup_id'];?></td>
			<td><?php echo $maup['ngaytao'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'maups', 'action' => 'view', $maup['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'maups', 'action' => 'edit', $maup['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'maups', 'action' => 'delete', $maup['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $maup['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Maup', true), array('controller' => 'maups', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Ps');?></h3>
	<?php if (!empty($maup['P'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Ctrinh Id'); ?></th>
		<th><?php __('Tenphieu'); ?></th>
		<th><?php __('Ngaylap'); ?></th>
		<th><?php __('Maup Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($maup['P'] as $p):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $p['id'];?></td>
			<td><?php echo $p['ctrinh_id'];?></td>
			<td><?php echo $p['tenphieu'];?></td>
			<td><?php echo $p['ngaylap'];?></td>
			<td><?php echo $p['maup_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ps', 'action' => 'view', $p['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ps', 'action' => 'edit', $p['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ps', 'action' => 'delete', $p['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $p['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New P', true), array('controller' => 'ps', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
